<?php
/**
 * Created by PhpStorm.
 * User: Lin Hui
 * Date: 2017/5/23
 * Time: 14:45
 */

namespace Home\Model;


use Think\Model;

class SlideModel extends Model
{
    /**
     * 获取轮播
     * @param $website_id
     * @return bool|mixed
     */
    public function getSlide($website_id)
    {
        if(is_numeric($website_id) && $website_id > 0) {
            return $this->where(array('website_id'=>$website_id))->select();
        } else {
            return false;
        }
    }
}